package com.jmp.api.dto;

import cn.hutool.core.util.HashUtil;
import lombok.Builder;
import lombok.Data;
import org.springframework.util.StringUtils;

/**
 * @author cjr
 */
@Data
@Builder
public class TemplateCreateResultDto {
    private String cardUrl;
    private String configStr;
    private String paramStr;

    public String paramStrHash() {
        if (StringUtils.isEmpty(paramStr)) {
            return paramStr;
        }
        return String.valueOf(HashUtil.fnvHash(paramStr));
    }
}
